import Vue from 'vue'
import App from './App'
import { showToast, showLoading, hideLoading, backPage,jump,TimeFormat,fomatFloat,showModal  } from './static/libs/util.js'
import store from './store'

// import indexMenu from './components/commonView/commontImg.js'
import allMessage from 'static/libs/config.js'
import uView from "uview-ui";
Vue.use(uView);

import 'animate.css'

// #ifndef VUE3
Vue.config.productionTip = false
Vue.prototype.$store = store;
Vue.prototype.$toast = showToast;
Vue.prototype.$showModal = showModal;
Vue.prototype.$fomatFloat = fomatFloat;
Vue.prototype.$loading = showLoading;
Vue.prototype.$hideLoading = hideLoading;
Vue.prototype.$backPage = backPage;
Vue.prototype.$jump = jump;
Vue.prototype.$TimeFormat = TimeFormat;
// Vue.prototype.$indexMenu = indexMenu;
Vue.prototype.$allMessage = allMessage;

App.mpType = 'app'
const app = new Vue({
  store,
  ...App
})
app.$mount()
// #endif
